home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / infosrvr / dev / www_talk.930 / 000902_the_ol' Motif FAQ.....msg < prev    next >
Text File  |  1994-01-24  |  5KB  |  96 lines

  1.  
  2. -----------------------------------------------------------------------------
  3. Subject: 41) Is there an emacs binding for the text widget?
  4.  
  5. Answer: This set is due to Kee Hinckley (nazgul@alfalfa.com):
  6.  
  7. *XmText.translations: #override\n\
  8.         Ctrl <Key>b:            backward-character()\n\
  9.         Alt <Key>b:             backward-word()\n\
  10.         Meta <Key>b:            backward-word()\n\
  11.         Shift Alt <Key>b:       backward-word(extend)\n\
  12.         Shift Meta <Key>b:      backward-word(extend)\n\
  13.         Alt <Key>[:             backward-paragraph()\n\
  14.         Meta <Key>[:            backward-paragraph()\n\
  15.         Shift Alt <Key>[:       backward-paragraph(extend)\n\
  16.         Shift Meta <Key>[:      backward-paragraph(extend)\n\
  17.         Alt <Key><:             beginning-of-file()\n\
  18.         Meta <Key><:            beginning-of-file()\n\
  19.         Ctrl <Key>a:            beginning-of-line()\n\
  20.         Shift Ctrl <Key>a:      beginning-of-line(extend)\n\
  21.         Ctrl <Key>osfInsert:    copy-clipboard()\n\
  22.         Shift <Key>osfDelete:   cut-clipboard()\n\
  23.         Shift <Key>osfInsert:   paste-clipboard()\n\
  24.         Alt <Key>>:             end-of-file()\n\
  25.         Meta <Key>>:            end-of-file()\n\
  26.         Ctrl <Key>e:            end-of-line()\n\
  27.         Shift Ctrl <Key>e:      end-of-line(extend)\n\
  28.         Ctrl <Key>f:            forward-character()\n\
  29.         Alt <Key>]:             forward-paragraph()\n\
  30.         Meta <Key>]:            forward-paragraph()\n\
  31.         Shift Alt <Key>]:       forward-paragraph(extend)\n\
  32.         Shift Meta <Key>]:      forward-paragraph(extend)\n\
  33.         Ctrl Alt <Key>f:        forward-word()\n\
  34.         Ctrl Meta <Key>f:       forward-word()\n\
  35.         Ctrl <Key>d:            kill-next-character()\n\
  36.         Alt <Key>BackSpace:     kill-previous-word()\n\
  37.         Meta <Key>BackSpace:    kill-previous-word()\n\
  38.         Ctrl <Key>w:            key-select() kill-selection()\n\
  39.         Ctrl <Key>y:            unkill()\n\
  40.         Ctrl <Key>k:            kill-to-end-of-line()\n\
  41.         Alt <Key>Delete:        kill-to-start-of-line()\n\
  42.         Meta <Key>Delete:       kill-to-start-of-line()\n\
  43.         Ctrl <Key>o:            newline-and-backup()\n\
  44.         Ctrl <Key>j:            newline-and-indent()\n\
  45.         Ctrl <Key>n:            next-line()\n\
  46.         Ctrl <Key>osfLeft:      page-left()\n\
  47.         Ctrl <Key>osfRight:     page-right()\n\
  48.         Ctrl <Key>p:            previous-line()\n\
  49.         Ctrl <Key>g:            process-cancel()\n\
  50.         Ctrl <Key>l:            redraw-display()\n\
  51.         Ctrl <Key>osfDown:      next-page()\n\
  52.         Ctrl <Key>osfUp:        previous-page()\n\
  53.         Ctrl <Key>space:        set-anchor()\n
  54.  
  55.  
  56. ! If you'd like the Delete key to work like backspace instead of deleting
  57. ! backwards, add the following definition to the lines above.
  58. !       <Key>osfDelete: delete-previous-character()\n\
  59.  
  60. ! These aren't included because they could intefere with
  61. | menu accelerators (or vice versa)
  62. !       Alt <Key>p:             backward-paragraph()\n\
  63. !       Meta <Key>p:            backward-paragraph()\n\
  64. !       Shift Alt<Key>p:        backward-paragraph(extend)\n\
  65. !       Shift Meta<Key>p:       backward-paragraph(extend)\n\
  66. !       Alt <Key>w:             copy-clipboard()\n\
  67. !       Meta <Key>w:            copy-clipboard()\n\
  68. !       Ctrl Alt <Key>w:        cut-clipboard()\n\
  69. !       Ctrl Meta <Key>w:       cut-clipboard()\n\
  70. !       Alt <Key>y:             paste-clipboard()\n\
  71. !       Meta <Key>y:            paste-clipboard()\n\
  72. !       Alt <Key>f:             forward-word()\n\
  73. !       Meta <Key>f:            forward-word()\n\
  74. !       Alt <Key>n:             forward-paragraph()\n\
  75. !       Meta <Key>n:            forward-paragraph()\n\
  76. !       Shift Alt <Key>n:       forward-paragraph(extend)\n\
  77. !       Shift Meta <Key>n:      forward-paragraph(extend)\n\
  78. !       Shift Alt <Key>f:       forward-word(extend)\n\
  79. !       Shift Meta <Key>f:      forward-word(extend)\n\
  80. !       Alt <Key>d:             kill-next-word()\n\
  81. !       Meta <Key>d:            kill-next-word()\n\
  82. !       Alt <Key>h:             select-all()\n\
  83. !       Meta <Key>h:            select-all()\n\
  84.  
  85. Similar sets of translations have been suggested by others.
  86. ------------------------------------------------------------------------------
  87.  
  88. Cheers,
  89. Marc
  90.  
  91. --
  92. Marc Andreessen
  93. Software Development Group
  94. National Center for Supercomputing Applications
  95. marca@ncsa.uiuc.edu
  96.